package org.budo.dubbo.protocol.http.authentication;

import org.budo.support.spring.context.aware.BudoApplicationContextAware;

import lombok.Getter;
import lombok.Setter;

/**
 * 基类
 * 
 * @author limingwei
 */
@Getter
@Setter
public abstract class AbstractAuthenticationCheckInterceptor {
    private Boolean defaultAuthenticationCheck = false;

    private AuthenticationCheckService authenticationCheckService;

    public AuthenticationCheckService getAuthenticationCheckService() {
        if (null == this.authenticationCheckService) {
            this.authenticationCheckService = BudoApplicationContextAware.getBean(AuthenticationCheckService.class);
        }
        return this.authenticationCheckService;
    }
}